package com.zenith.api.po.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 用户DTO
 *
 * @author makejava
 * @since 2025-08-15
 */
@Data
@Schema(name = "UserDTO", description = "用户证书DTO")
public class UserDTO {

    @Schema(description = "页码")
    private Integer pageNum;

    @Schema(description = "每页数量")
    private Integer pageSize;

    @Schema(description = "用户ID")
    private Long id;
    @Schema(description = "用户名")
    private String username;
    @Schema(description = "密码")
    private String password;
    @Schema(description = "真实姓名")
    private String realName;
    @Schema(description = "手机号")
    private String phone;
    @Schema(description = "邮箱")
    private String email;
    @Schema(description = "头像")
    private String avatar;
    @Schema(description = "角色")
    private String role;
    @Schema(description = "状态（0-禁用，1-正常）")
    private Integer status;
    @Schema(description = "创建时间")
    private Date createTime;
    @Schema(description = "更新时间")
    private Date updateTime;
    @Schema(description = "是否删除（0-未删除，1-已删除）")
    private Integer deleted;
    
    // 手动添加getter和setter方法，确保可以被访问
    public Integer getPageNum() {
        return pageNum;
    }
    
    public Integer getPageSize() {
        return pageSize;
    }
    
    public Long getId() {
        return id;
    }
    
    public String getUsername() {
        return username;
    }
    
    public String getPassword() {
        return password;
    }
    
    public String getRealName() {
        return realName;
    }
    
    public String getPhone() {
        return phone;
    }
    
    public String getEmail() {
        return email;
    }
    
    public String getAvatar() {
        return avatar;
    }
    
    public String getRole() {
        return role;
    }
    
    public Integer getStatus() {
        return status;
    }
    
    public Date getCreateTime() {
        return createTime;
    }
    
    public Date getUpdateTime() {
        return updateTime;
    }
    
    public Integer getDeleted() {
        return deleted;
    }
    
    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }
    
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public void setRealName(String realName) {
        this.realName = realName;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
    
    public void setRole(String role) {
        this.role = role;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}